
package vn.aptech.project.control;
import vn.aptech.project.model.dao.*;
import java.io.IOException;
import java.sql.SQLException;
import vn.aptech.project.model.dto.*;
import java.util.Vector;

public class  tbladmin_BLL {

private tbladmin_DAO   obj ;


public tbladmin_BLL() throws ClassNotFoundException, SQLException, IOException {
     this.obj   = new  tbladmin_DAO();
}
public int getAdminidByAdminName(String Adminname) throws SQLException, IOException
{
      return obj.getAdminidByAdminName(Adminname);
}

public Vector selectPWbyUse(String UseName) throws SQLException {
 return  obj.selectPWbyUse(UseName);
}


public int inserttbladmin(tbladmin_DTO object) throws SQLException {
 return  obj.insert(object);
}


public int updatetbladmin(tbladmin_DTO object) throws SQLException {
 return  obj.update(object);
}


public int deletetbladmin(int adminid) throws SQLException {
 return  obj.delete(adminid);
}
}
